package com.yonyou.pmclouds.offline.configuration;

import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 获取基础数据扩展类集合
 */
@Component
public class OffLineDataExtendLoader {

    private Map<String, Object> extensionServiceMap = new ConcurrentHashMap<>();

    public void addExtensionService(String key, Object service){
        extensionServiceMap.put(key, service);
    }

    public Map<String, Object> getExtensionServiceMap() {
        return extensionServiceMap;
    }
}
